<?php

namespace app\index\controller;

use think\Controller;

class Api extends Controller
{

    public function tempfile()
    {
        $mid = input('mid');
        $weixin = new Weixin();
        $file_name = $weixin->getTempFile($mid);

        if ($file_name) {
            $this->success('error', '', $file_name);

        }
        $this->error('ok', '', $file_name);

    }


}
